package edu.spec.dengyan.week03.class01;

public class Student {
    public String xm;
    public String xh;
    public String sfzh;
    public static String bj="软件一班";
    public static String zy="软件与信息服务";
    private int nn;
    private double tz;
    public  Student(String xm,String xh,String sfzh){
        this.xm=xm;
        this.xh=xh;
        this.sfzh=sfzh;
    }
    public  Student(String xm,String xh,String sfzh,int nn,double tz){
        this.xm=xm;
        this.xh=xh;
        this.sfzh=sfzh;
        this.nn=nn;
        this.tz=tz;
    }
    public static void main(String[] args){
        Student s1=new Student("朱小明","323","qqqq");
        Student s2=new Student("茅台","766","dfgq");
        Student s3=new Student("蘑菇头","366","qqqq");
        Student d=new Student("自己","3777","sdeq",18,140.0f);
        Student[] sz=new Student[4];
        sz[0]=s1;
        sz[1]=s2;
        sz[2]=s3;
        sz[3]=d;
        for(Student s:sz)
            System.out.println(s.xm);
    }
}
